# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=barman
pkgver=2.11
pkgrel=0
pkgdesc="Backup and recovery manager for PostgreSQL"
url="http://www.pgbarman.org"
arch="noarch"
license="GPL"
depends="python3 py3-setuptools rsync py3-argcomplete py3-dateutil py3-psycopg2 py3-argh"
subpackages="$pkgname-doc"
source="https://sourceforge.net/projects/pgbarman/files/${pkgver}/barman-${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="19862e7a50e45ec48c2e6e12aa18cdc262e5114d243d24f5b9229347a6fd9e3fe79a10a2c4a9ac14fe4c283c59c992b3b8a5409371a5b780b8c5ab20eec1ee96  barman-2.11.tar.gz"
